<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@include file="header.jsp"%>

<div class="container">
    <c:if test="%{#codPermissao==1}">
        <h2 class="form-signin-heading">Componentes</h2>
        <a href="cadastra_componente.jsp">Cadastrar Componentes</a>
        <div class="row">
           <s:iterator value="#request.componentes" status="status">
               <div class="span4">
                   <a href="<s:property value="deleteURL"/>"><img src="/img/Delete16.gif" border="0" /></a>&nbsp;
                   <a href="<s:property value="editURL"/>"><s:property value="title" /></a>
                </div>
            </s:iterator>
        </div>
    </c:if>
        <s:else>
            <c:redirect url="index.jsp"/>
        </s:else>              
</div> <!-- /container -->
<%@include file="footer.jsp"%>